package com.millstein.vo;

import com.millstein.model.BannerDO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

/**
 * @description:
 * @author: tsing
 * @create: 2021-09-16 14:57
 */
@Data
@NoArgsConstructor
public class BannerVO {

    @ApiModelProperty("主键")
    private Integer id;

    @ApiModelProperty("图片路径")
    private String img;

    @ApiModelProperty("跳转地址")
    private String url;

    @ApiModelProperty("权重")
    private Integer weight;

    public BannerVO(BannerDO bannerDO) {
        BeanUtils.copyProperties(bannerDO, this);
    }
}
